﻿[#include "../include/html_header.html"/]
<script language="javascript" src="${root}/js/duice.js"></script>
<script type="text/javascript" src="${root}/js/img.js"></script>


</head>
<body>
[#include "../include/html_header_top.html"/]
<!-- ---------------------  1 ------------------------- -->


[@shop_Category]
   [#list tag_list as cate]
    [#if cate_index== 0]
   <div class="am-g am-g-fixed" >
    <div data-am-widget="titlebar" class="am-titlebar am-titlebar-multi">
        <h2 class="am-titlebar-title">${cate.name!}</h2>
        <nav class="am-titlebar-nav">
            [@shop_Category parentId=cate.id]
            [#list tag_list as subcate]
            <a href="${subcate.url!}" class="gray">${subcate.name!}</a>
            [/#list]
            [/@shop_Category]
        </nav>
    </div>
  </div>
<div class="am-g am-g-fixed" >

        <ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-4 am-gallery-default">
            [@shop_ProductList categoryId=cate.id count='8' Recommend='1']
            [#list tag_list as product]
            <li>
                <div class="am-gallery-item">
                    <a href="${product.url!}" target="_blank">
                        <img  src="${product.productExt.coverImg!}" onload="javascript:DrawImage(this,100,110);"/></a>
                </div>
                <h3 class="am-gallery-title">[@text_cut s=product.name len='20' append='...'/] </h3>

                <div class="am-gallery-desc">
                [#if product.productFashion??]
                	市场价:￥${product.productFashion.marketPrice!}
                    <strong>商城价:￥${product.productFashion.salePrice!}</strong>
                [#else]
                市场价:￥${product.marketPrice!} <strong>商城价:￥${product.salePrice!}</strong></div>
                [/#if]
            </li>
            [/#list]
            [/@shop_ProductList]
        </ul>


    [/#if]
    [/#list]
    [/@shop_Category]
</div>
<!-- ------------------------------   2-------------------------------- -->

[@shop_Category]
[#list tag_list as cate]
[#if cate_index== 1]
<div class="am-g am-g-fixed" >
    <div data-am-widget="titlebar" class="am-titlebar am-titlebar-multi">
        <h2 class="am-titlebar-title">${cate.name!}</h2>
        <nav class="am-titlebar-nav">
            [@shop_Category parentId=cate.id]
            [#list tag_list as subcate]
            <a href="${subcate.url!}" class="gray">${subcate.name!}</a>
            [/#list]
            [/@shop_Category]
        </nav>
    </div>
</div>
<div class="am-g am-g-fixed" >

    <ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-4 am-gallery-default">
        [@shop_ProductList categoryId=cate.id count='8' Recommend='1']
        [#list tag_list as product]
        <li>
            <div class="am-gallery-item">
                <a href="${product.url!}" target="_blank">
                    <img  src="${product.productExt.coverImg!}" onload="javascript:DrawImage(this,100,110);"/></a>
            </div>
            <h3 class="am-gallery-title">[@text_cut s=product.name len='20' append='...'/] </h3>

            <div class="am-gallery-desc">
                [#if product.productFashion??]
                市场价:￥${product.productFashion.marketPrice!}
                <strong>商城价:￥${product.productFashion.salePrice!}</strong></div>
            [#else]
            市场价:￥${product.marketPrice!} <strong>商城价:￥${product.salePrice!}</strong></div>
[/#if]
</li>
[/#list]
[/@shop_ProductList]
</ul>


[/#if]
[/#list]
[/@shop_Category]
</div>

<!-- --------------------------------  3 -------------------------------- -->
[@shop_Category]
[#list tag_list as cate]
[#if cate_index== 2]
<div class="am-g am-g-fixed" >
    <div data-am-widget="titlebar" class="am-titlebar am-titlebar-multi">
        <h2 class="am-titlebar-title">${cate.name!}</h2>
        <nav class="am-titlebar-nav">
            [@shop_Category parentId=cate.id]
            [#list tag_list as subcate]
            <a href="${subcate.url!}" class="gray">${subcate.name!}</a>
            [/#list]
            [/@shop_Category]
        </nav>
    </div>
</div>
<div class="am-g am-g-fixed" >

    <ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-4 am-gallery-default">
        [@shop_ProductList categoryId=cate.id count='8' Recommend='1']
        [#list tag_list as product]
        <li>
            <div class="am-gallery-item">
                <a href="${product.url!}" target="_blank">
                    <img  src="${product.productExt.coverImg!}" onload="javascript:DrawImage(this,100,110);"/></a>
            </div>
            <h3 class="am-gallery-title">[@text_cut s=product.name len='20' append='...'/] </h3>

            <div class="am-gallery-desc">
                [#if product.productFashion??]
                市场价:￥${product.productFashion.marketPrice!}
                <strong>商城价:￥${product.productFashion.salePrice!}</strong>
            [#else]
            市场价:￥${product.marketPrice!} <strong>商城价:￥${product.salePrice!}</strong></div>
[/#if]
</li>
[/#list]
[/@shop_ProductList]
</ul>


[/#if]
[/#list]
[/@shop_Category]
</div>

<!-- -------------------------- 4 ------------------------------------ -->

[@shop_Category]
[#list tag_list as cate]
[#if cate_index== 3]
<div class="am-g am-g-fixed" >
    <div data-am-widget="titlebar" class="am-titlebar am-titlebar-multi">
        <h2 class="am-titlebar-title">${cate.name!}</h2>
        <nav class="am-titlebar-nav">
            [@shop_Category parentId=cate.id]
            [#list tag_list as subcate]
            <a href="${subcate.url!}" class="gray">${subcate.name!}</a>
            [/#list]
            [/@shop_Category]
        </nav>
    </div>
</div>
<div class="am-g am-g-fixed" >

    <ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-4 am-gallery-default">
        [@shop_ProductList categoryId=cate.id count='8' Recommend='1']
        [#list tag_list as product]
        <li>
            <div class="am-gallery-item">
                <a href="${product.url!}" target="_blank">
                    <img  src="${product.productExt.coverImg!}" onload="javascript:DrawImage(this,100,110);"/></a>
            </div>
            <h3 class="am-gallery-title">[@text_cut s=product.name len='20' append='...'/] </h3>

            <div class="am-gallery-desc">
                [#if product.productFashion??]
                市场价:￥${product.productFashion.marketPrice!}
                <strong>商城价:￥${product.productFashion.salePrice!}</strong>
            [#else]
            市场价:￥${product.marketPrice!} <strong>商城价:￥${product.salePrice!}</strong></div>
[/#if]
</li>
[/#list]
[/@shop_ProductList]
</ul>


[/#if]
[/#list]
[/@shop_Category]
</div>

<!-- -----------------------------  ////////////////////////////-------------------- -->
[@shop_Category]
[#list tag_list as cate]
[#if cate_index&gt;3&& cate_index&lt;6]
<div class="am-g am-g-fixed" >
    <div data-am-widget="titlebar" class="am-titlebar am-titlebar-multi">
        <h2 class="am-titlebar-title">${cate.name!}</h2>
        <nav class="am-titlebar-nav">
            [@shop_Category parentId=cate.id]
            [#list tag_list as subcate]
            <a href="${subcate.url!}" class="gray">${subcate.name!}</a>
            [/#list]
            [/@shop_Category]
        </nav>
    </div>
</div>
<div class="am-g am-g-fixed" >

    <ul data-am-widget="gallery" class="am-gallery am-avg-sm-3 am-avg-md-3 am-avg-lg-4 am-gallery-default">
        [@shop_ProductList categoryId=cate.id count='8' Recommend='1']
        [#list tag_list as product]
        <li>
            <div class="am-gallery-item">
                <a href="${product.url!}" target="_blank">
                    <img  src="${product.productExt.coverImg!}" onload="javascript:DrawImage(this,100,110);"/></a>
            </div>
            <h3 class="am-gallery-title">[@text_cut s=product.name len='20' append='...'/] </h3>

            <div class="am-gallery-desc">
                [#if product.productFashion??]
                市场价:￥${product.productFashion.marketPrice!}
                <strong>商城价:￥${product.productFashion.salePrice!}</strong>
            [#else]
            市场价:￥${product.marketPrice!} <strong>商城价:￥${product.salePrice!}</strong></div>
[/#if]
</li>
[/#list]
[/@shop_ProductList]
</ul>
</div>

[/#if]
[/#list]
[/@shop_Category]


</div>
</div>
<div>
</div>
[#include "../include/footer.html"/]
</body>
</html>